# -*- encoding: utf-8 -*-
"""
-文件：transaction_output.py
-说明：交易输出类
-作者：tlj
"""


class TXOutput:
    def __init__(self, address, amount):
        """
        :param address: 输出地址
        :param amount: 金额
        """
        self.address = address
        self.amount = amount

    def is_locked_with(self, address):
        return self.address == address

    def __repr__(self):
        return "TXOutput(amount={}, address={})".format(
            self.amount, self.address)